package com.cxg.allsys.expertsys.controller;

import com.cxg.allsys.expertsys.pojo.TExpert;
import com.cxg.allsys.expertsys.service.IExpertsysService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/api")
@RestController
@Slf4j
public class ExpertsysConfig {

    @Autowired
    private IExpertsysService iExpertsysSevice;



    //登录
    @RequestMapping("/Common/CheckLoginExpert")
    public TExpert checkLoginExpert(String phone , String password){
      return  iExpertsysSevice.expertsysLogin(phone,password);
    }

}
